<?php 
class Application_Model_QualityProblemImg extends Application_Model_DomainObject {
    
    protected $_id;
    /**
     * 问题内容ID
     */
    protected $_contentId;
    /**
     * 图片地址
     */
    protected $_imgUrl;

    public static function addQualityProblemImg($contentId,$imgUrl)
    {
        $qualityProblemImg = new Application_Model_QualityProblemImg();
        $qualityProblemImg->contentId = $contentId;
        $qualityProblemImg->imgUrl = $imgUrl;
        $qualityProblemImg->save();
        return $qualityProblemImg->Id;
    }
    
    public static function byContentId($contentId)
    {
        return self::getDao()->queryAll(array(" contentId = "=> $contentId));
    }
}